<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('更换岗位')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-activity-end">
            <input name="enrollId" class="form-control" style="display: none" type="text" readonly th:value="${enrollId}"/>
            <div class="form-group">
                <label class="col-sm-4 control-label">当前岗位：</label>
                <div class="col-sm-7">
                    <input class="form-control" type="text" readonly th:value="${postName}"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-4 control-label">更换岗位：</label>
                <div class="col-sm-7">
                    <select class="form-control m-b" name="postId">
                        <option th:each="post : ${postList}" th:text="${post.postName}"
                                th:value="${post.postId}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "vtsp/enroll"
        $("#form-activity-end").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-activity-end').serialize());
            }
        }

    </script>
</body>
</html>
